<?php

	function getSelect($table){
	require('php_connect.php');
$connexion = new PDO('mysql:host='.$PARAM_hote.';dbname='.$PARAM_nom_bd, $PARAM_utilisateur, $PARAM_mot_passe,array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));

		$sql="SELECT * FROM $table ORDER BY libelle";

	$query = $connexion->query($sql);
	echo "<option value='' selected='true'></option>";
	
	
	foreach($query as $row)
				echo "<option value=".$row['id_'.$table].">".$row['libelle']."</option>";
}
?>